package com.efa.backend.base.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @Description: 产品历史收益记录
 * @author zhaoxin
 * @date 2014年3月12日 下午7:25:14
 * @version V1.0
 */

@Entity
@Table(name = "HIS_PRODUCT_PROFIT")
public class HisProductProfit implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@JsonIgnore
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	@Column(name = "ID", unique = true, nullable = false)
	private long id;
	/**
	 * 产品信息表
	 */
	@JsonIgnore
	@ManyToOne
	@JoinColumn(name = "product_id")
	private ProductDetail productDetail;
	/**
	 * 万份收益
	 */
	@Column
	private double wfsy;
	/**
	 * 7日年化
	 */
	@Column
	private double qrnh;

	@Column(name = "create_date")
	private Date createDate;
	
	@Transient
	private String createdate;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public ProductDetail getProductDetail() {
		return productDetail;
	}

	public void setProductDetail(ProductDetail productDetail) {
		this.productDetail = productDetail;
	}

	public double getWfsy() {
		return wfsy;
	}

	public void setWfsy(double wfsy) {
		this.wfsy = wfsy;
	}

	public double getQrnh() {
		return qrnh;
	}

	public void setQrnh(double qrnh) {
		this.qrnh = qrnh;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreatedate() {
		return createdate;
	}

	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}

}
